<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root version="1.2" xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
	<jsp:directive.page contentType="text/html;charset=ISO-8859-1"
		pageEncoding="ISO-8859-1" />
	<f:view>
		<ice:outputDeclaration doctypeRoot="html"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
		<html>

			<head>
				<title>Informe Kardex</title>
				<link rel="stylesheet" type="text/css"
					href="./xmlhttp/css/rime/rime.css" />
				<link rel="stylesheet" type="text/css" href="./css/Clases_Qs.css" />
				<script type="text/javascript" src="js/Funciones.js"></script>
			</head>

			<body style="-rave-layout: grid" background="./Media/img/fondo.jpg">

				<table width="100%" cellpadding="0" cellspacing="0"
					style="vertical-align: top" border="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid border="0" cellpadding="0" cellspacing="0">
								<jsp:directive.include file="Cabecera.jsp" />
							</ice:panelGrid>
						</td>
					</tr>
				</table>
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr align="center">
						<td align="center" valign="top">
							<ice:panelGrid columns="2" cellspacing="0" cellpadding="0"
								border="0" columnClasses="Conf_panelgrid1">
								<ice:panelGrid width="220"
									style='background-image: url("./Media/img/fondo_tree.jpg"); background-repeat: no-repeat;'>
									<jsp:directive.include file="menutree.jsp" />
								</ice:panelGrid>
								<ice:panelGrid width="575"
									style="vertical-align: top;  margin-top: 0px;">



									<ice:form partialSubmit="true" id="formulario"
										style='margin-left: 10px;'>
										<ice:panelGrid width="636">
											<ice:panelGrid width="100%"
												style='text-align: center; height: 40px;background-image: url("./Media/img/Titulo.gif"); background-position: center; background-repeat: no-repeat'>
												<ice:outputText value="KARDEX" styleClass="tituloform" />
											</ice:panelGrid>

											<ice:panelGrid columns="3" styleClass="Conf_panelgrid3"
												style="height: 10px">

												<ice:outputText value="Bodega&#160;Local&#160;:"
													style="color:#004080; font-size: 12px;  font-weight: bold;" />

												<ice:panelGrid border="0" columns="3" style="width: 200px; "
													styleClass="Conf_panelgrid3">

													<ice:inputText value="#{Inv_Kardex_MB.bbodegas}"
														tabindex="3" binding="#{Inv_Kardex_MB.txtbodegasal}"
														maxlength="30"
														actionListener="#{Inv_Kardex_MB.action_Validabodega}"
														partialSubmit="true"
														disabled="#{Inv_Kardex_MB.sweditando}" style="width: 50px">
													</ice:inputText>
													<ice:commandButton styleClass="boton_bus"
														visible="#{!Inv_Kardex_MB.sweditando}"
														disabled="#{Inv_Kardex_MB.sweditando}"
														actionListener="#{Inv_Kardex_MB.popupAccion_Estado_BodegaPadre}" />
													<ice:inputText value="#{Inv_Kardex_MB.bbodegasnom}"
														binding="#{Inv_Kardex_MB.txtbodegasalnom}" maxlength="30"
														partialSubmit="true" readonly="true" style="width: 130px">
													</ice:inputText>
												</ice:panelGrid>


											</ice:panelGrid>

											<ice:panelGrid columns="6" styleClass="Conf_panelgrid3">

												<ice:outputText
													value="&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Producto&#160;:&#160;"
													style="color:#004080; font-size: 12px; font-weight: bold;" />
												<ice:inputText value="#{Inv_Kardex_MB.aproducto}"
													binding="#{Inv_Kardex_MB.txtaproducto}" maxlength="15"
													partialSubmit="true" style="width: 100px"
													actionListener="#{Inv_Kardex_MB.action_Validaproducto}"
													tabindex="5">
												</ice:inputText>
												<ice:commandButton value=""
													onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
													actionListener="#{Inv_Kardex_MB.popupAccion_Cerrar}"
													image="./Media/img/But8.bmp" title="BuscarProducto" />
												<ice:inputText value="#{Inv_Kardex_MB.apronombre}"
													readonly="true" binding="#{Inv_Kardex_MB.txtapronombre}"
													maxlength="40" partialSubmit="true" style="width: 138px"
													actionListener="#{Inv_Kardex_MB.action_Validausuario}">
												</ice:inputText>
												<ice:panelGrid columns="2" style=" margin-left: 20px">
													<ice:outputText value="&#160;Saldo a Fecha de Cierre&#160;:"
														style="color:#004080; font-size: 12px; font-weight: bold;" />
													<ice:inputText value="#{Inv_Kardex_MB.aprocantidad}"
														onkeydown="manejoEnterCambioCampo(Ice.EventModel.Event.adaptToKeyEvent(event,this));"
														binding="#{Inv_Kardex_MB.txtaprocantidad}" readonly="true"
														maxlength="15" partialSubmit="true" style="width: 80px; font-size: 12px; font-weight: bold"
														tabindex="7">
													</ice:inputText>
												</ice:panelGrid>

											</ice:panelGrid>

											<ice:panelGrid columns="5" styleClass="Conf_panelgrid3"
												style="height: 10px; ">
												<ice:outputText
													value="&#160;&#160;Fecha&#160;Cierre&#160;:&#160;"
													style="color:#004080; font-size: 12px; font-weight: bold;" />

												<ice:selectInputDate renderAsPopup="true"
													value="#{Inv_Kardex_MB.fechabusca}"
													binding="#{Inv_Kardex_MB.txtfechabusca}"
													valueChangeListener="#{Inv_Kardex_MB.action_selecfecha}">
												</ice:selectInputDate>





											</ice:panelGrid>

											<ice:panelGrid columns="4" style="height: 10px">
												<ice:panelGrid columns="5" styleClass="Conf_panelgrid3">

													<ice:outputText value="&#160;Bus.&#160;Bodega&#160;:&#160;"
														styleClass="Conf_panelgrid3"
														style="color:#004080; font-size: 12px; font-weight: bold;" />

													<ice:selectOneMenu value="#{Inv_Kardex_MB.selecestadobus}"
														binding="#{Inv_Kardex_MB.seleconeestadobus}"
														style="width: 125px">
														<f:selectItem itemValue="1" itemLabel="TODAS" />
														<f:selectItem itemValue="2" itemLabel="BOD ORIGEN" />
														<f:selectItem itemValue="3" itemLabel="BOD DESTINO" />
													</ice:selectOneMenu>


													<ice:panelGrid dir="LTR" border="0" columns="3"
														style="width: 158px" styleClass="Conf_panelgrid3">


														<ice:inputText value="#{Inv_Kardex_MB.bbodegae}"
															tabindex="3" binding="#{Inv_Kardex_MB.txtbodegae}"
															maxlength="30"
															actionListener="#{Inv_Kardex_MB.action_Validabodega_ent}"
															partialSubmit="true"
															disabled="#{!Inv_Kardex_MB.swselec_bodpad}"
															style="width: 50px">
														</ice:inputText>
														<ice:commandButton styleClass="boton_bus"
															visible="#{Inv_Kardex_MB.swselec_bodpad}"
															rendered="#{Inv_Kardex_MB.swselec_bodpad}"
															actionListener="#{Inv_Kardex_MB.popupAccion_Estado_BodegaHija}" />
														<ice:inputText value="#{Inv_Kardex_MB.bbodegaenom}"
															binding="#{Inv_Kardex_MB.txtbodegaentnom}" maxlength="30"
															partialSubmit="true" readonly="true" style="width: 130px">
														</ice:inputText>

													</ice:panelGrid>


												</ice:panelGrid>










												<ice:commandButton value="Buscar"
													image="./Media/img/But4.bmp"
													actionListener="#{Inv_Kardex_MB.action_Buscar}" />


											</ice:panelGrid>

											<ice:dataTable var="itemx" value="#{Inv_Kardex_MB.mngmcnw}"
												id="tableUnimedw" rows="7" width="660" rendered="true"
												border="1">
												<ice:column style="width: 50px">
													<ice:rowSelector id="selected" value="#{itemx.selected}"
														multiple="false"
														selectionListener="#{Inv_Kardex_MB.rowSelectionListenerDetalle}"
														selectedClass="QsiceRowSelSelectedMouseOver"
														mouseOverClass="QsiceRowSelSelected" />
													<f:facet name="header">
														<ice:outputText value="Producto" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.producto.procodigo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 40px">
													<f:facet name="header">
														<ice:outputText value="Documento" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.mngdoc.id.doctipo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width: 60px">
													<f:facet name="header">
														<ice:outputText value="Numero" styleClass="headertabla" />
													</f:facet>
													<ice:outputText
														value="#{itemx.mngmcnw.mngdoc.id.docnumero}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">
														<f:convertNumber maxFractionDigits="0" groupingUsed="true"
															currencySymbol="" maxIntegerDigits="16" type="currency" />

													</ice:outputText>
												</ice:column>


												<ice:column style="width: 70px">
													<f:facet name="header">
														<ice:outputText value="Fecha" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.mngdoc.docfecha}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px">
														<f:convertDateTime pattern="dd/MM/yyyy" />
													</ice:outputText>
												</ice:column>

												<ice:column style="width:55px">
													<f:facet name="header">
														<ice:outputText value="Bod.&#160;Entra"
															styleClass="headertabla" />
													</f:facet>
													<ice:outputText
														value="#{itemx.mngmcnw.mngdoc.bodega.bodcodigo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width:55px">
													<f:facet name="header">
														<ice:outputText value="Bod.&#160;Sale"
															styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.mngdoc.docbodsale}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
												<ice:column style="width:30px">
													<f:facet name="header">
														<ice:outputText value="Mov" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.mcnindinv}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>

												<ice:column style="width:55px">
													<f:facet name="header">
														<ice:outputText value="Cantidad" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.mngmcnw.mcncantid}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>


												<ice:column style="width:55px">
													<f:facet name="header">
														<ice:outputText value="Saldo" styleClass="headertabla" />
													</f:facet>
													<ice:outputText value="#{itemx.saldo}"
														style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
												</ice:column>
											</ice:dataTable>

											<ice:panelGrid columns="5" style="width: 524px; height: 39px">
												<ice:dataPaginator id="paginatorw" for="tableUnimedw"
													paginator="true" paginatorMaxPages="4" style="height: 17px">
													<f:facet name="first">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-first.gif" />
													</f:facet>
													<f:facet name="last">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-last.gif" />
													</f:facet>
													<f:facet name="previous">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-previous.gif" />
													</f:facet>
													<f:facet name="next">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-next.gif" />
													</f:facet>
													<f:facet name="fastforward">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-ff.gif" />
													</f:facet>
													<f:facet name="fastrewind">
														<ice:graphicImage style="border:none"
															url="./css/images/arrow-fr.gif" />
													</f:facet>
												</ice:dataPaginator>

												<ice:commandButton value="IMPRIMIR"
													binding="#{Inv_Kardex_MB.cmdedita}"
													actionListener="#{Inv_Kardex_MB.action_Imprimir_Rep}"
													styleClass="boton" />

												<ice:commandButton value="DETALLADO"
													binding="#{Inv_Kardex_MB.cmdelimina}" styleClass="boton" />
											</ice:panelGrid>


											<ice:panelPopup id="popupVenta" draggable="false"
												modal="true" visible="#{Inv_Kardex_MB.modalRendered}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 330px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Buscardor De Productos"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu value="#{Inv_Kardex_MB.busquedacmb}">
																<f:selectItem itemValue="pronombre" itemLabel="Nombre" />
																<f:selectItem itemValue="procodigo" itemLabel="Codigo" />
																<f:selectItem itemValue="todos" itemLabel="Todos" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Inv_Kardex_MB.buscarpro}"
																binding="#{Inv_Kardex_MB.txtBuscarpro}"
																style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4.bmp"
																actionListener="#{Inv_Kardex_MB.action_BuscarPro}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Inv_Kardex_MB.listProductos}" id="tablepopup"
															rows="6" rendered="true" width="400">


															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.procodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.pronombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.procodigo}"
																	binding="#{Inv_Kardex_MB.popup_cmdselecionar}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Inv_Kardex_MB.popupAccion_Selecionar}"
																	title="Agregar Producto" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="4"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopup" for="tablepopup"
																paginator="true" paginatorMaxPages="4"
																style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./xmlhttp/css/rime/css-images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="boton"
																actionListener="#{Inv_Kardex_MB.popupAccion_Cerrar}" />

														</ice:panelGrid>

														<ice:panelGrid style="width: 390px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgprod"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>


											<ice:panelPopup id="popupbodegas" draggable="false"
												modal="true" visible="#{Inv_Kardex_MB.modalpopupbodega}"
												autoCentre="true" styleClass="corePopup"
												style=" width: 420px; height: 300px;">
												<f:facet name="header">
													<ice:panelGroup styleClass="popupHeaderWrapper"
														style=" width: 400px;">
														<ice:outputText value="Buscardor De Bodega Destino"
															styleClass="popupHeaderText" />
													</ice:panelGroup>
												</f:facet>
												<f:facet name="body">
													<ice:panelGroup styleClass="popupBody">


														<ice:panelGrid columns="4" style="height: 20px">
															<ice:outputText value="Buscar :" styleClass="qs_label" />
															<ice:selectOneMenu
																value="#{Inv_Kardex_MB.busquedacmbbodega}">
																<f:selectItem itemValue="bodnombre" itemLabel="Nombre" />
																<f:selectItem itemValue="bodcodigo" itemLabel="Codigo" />
																<f:selectItem itemValue="todos" itemLabel="Todos" />
															</ice:selectOneMenu>
															<ice:inputText value="#{Inv_Kardex_MB.buscarbod}"
																binding="#{Traslado_MB.txtBuscarbod}"
																style="width: 97px"></ice:inputText>
															<ice:commandButton value="Buscar"
																image="./Media/img/But4.bmp"
																actionListener="#{Inv_Kardex_MB.action_BuscarBod}" />
														</ice:panelGrid>
														<ice:dataTable var="item"
															value="#{Inv_Kardex_MB.listaBodegapopup}"
															id="tablepopupbod" rows="6" rendered="true" width="400">

															<ice:column style="width: 60px">
																<f:facet name="header">
																	<ice:outputText value="Codigo" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodcodigo}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>
															<ice:column style="width: 160px">
																<f:facet name="header">
																	<ice:outputText value="Nombre" styleClass="headertabla" />
																</f:facet>
																<ice:outputText value="#{item.bodnombre}"
																	style="font-family: Verdana, Arial, Sans-Serif; color: #00274F; font-size: 12px" />
															</ice:column>

															<ice:column style="width: 100px">
																<f:facet name="header">
																</f:facet>
																<ice:commandButton value="#{item.bodcodigo}"
																	binding="#{Inv_Kardex_MB.popup_cmdselecionarBod}"
																	image="./Media/img/Selecionar.bmp"
																	actionListener="#{Inv_Kardex_MB.popupAccion_SelecionarBod}"
																	title="Agregar Bodega" />
															</ice:column>
														</ice:dataTable>
														<ice:panelGrid columns="3"
															style="width: 400px; height: 39px">
															<ice:dataPaginator id="paginatorpopupbod"
																for="tablepopupbod" paginator="true"
																paginatorMaxPages="4" style="height: 17px">
																<f:facet name="first">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-first.gif" />
																</f:facet>
																<f:facet name="last">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-last.gif" />
																</f:facet>
																<f:facet name="previous">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-previous.gif" />
																</f:facet>
																<f:facet name="next">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-next.gif" />
																</f:facet>
																<f:facet name="fastforward">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-ff.gif" />
																</f:facet>
																<f:facet name="fastrewind">
																	<ice:graphicImage style="border:none"
																		url="./css/images/arrow-fr.gif" />
																</f:facet>
															</ice:dataPaginator>
															<ice:commandButton type="submit" value="SALIR"
																styleClass="boton"
																actionListener="#{Inv_Kardex_MB.popupAccion_CerrarBod}" />
															<ice:outputText>
															</ice:outputText>

														</ice:panelGrid>
														<ice:panelGrid style="width: 390px"
															styleClass="Conf_panelgrid2">
															<ice:messages id="msgbod"
																style="width: 10px; height: 200px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
														</ice:panelGrid>
													</ice:panelGroup>
												</f:facet>
											</ice:panelPopup>




											<ice:messages id="msg"
												style="width: 10px; height: 20px; color: #AA0000; text-align: left; font-family: Verdana, Arial, Sans-Serif; font-size: 10px" />
										</ice:panelGrid>
									</ice:form>


								</ice:panelGrid>
							</ice:panelGrid>
						</td>
					</tr>
				</table>
			</body>
		</html>
	</f:view>
</jsp:root>